24#include "yaml-cpp/yaml.h"
99 mutable std::mutex mut_odometry_;
117 throw std::runtime_error(
"MotionProvider::getOrder: not a motion provider, doesn't have order");
124 throw std::runtime_error(
"MotionProvider::getOrder: not a motion provider, cannot have order");
Interface of the processors providing motion: the state at any time stamp (and odometry)....
Definition: motion_provider.h:36
virtual ~MotionProvider()
Destructor.
Definition: motion_provider.h:107
virtual VectorComposite getState(const TimeStamp &_ts, StateKeys _keys="") const =0
Returns the state at a time stamp.
void setOdometry(const VectorComposite &)
Sets the odometry (all the keys of the motion provider are required)
Definition: motion_provider.cpp:57
virtual TimeStamp getTimeStamp() const =0
Returns the time stamp of the last motion.
void addTypes(const TypeComposite &_state_types)
Adds the types of the states provided (with identity odometry). Throws if a key already has a differe...
Definition: motion_provider.cpp:32
VectorComposite getOdometry() const
Returns the odometry.
Definition: motion_provider.cpp:85
unsigned int state_provider_order_
If a state provider, the order to be used by the problem.
Definition: motion_provider.h:94
virtual VectorComposite getState(StateKeys _keys="") const =0
Returns the state at the time stamp of the last motion.
unsigned int getOrder() const
Returns the order of the state provider to be used by the problem. Throws if not a state provider.
Definition: motion_provider.h:114
MotionProvider(const TypeComposite &_state_types, const YAML::Node &_params)
Constructor.
Definition: motion_provider.cpp:25
bool isStateProvider() const
Returns whether the motion provider is configured as a state provider.
Definition: motion_provider.h:109
bool is_state_provider_
Whether this motion provider is configured as a state provider.
Definition: motion_provider.h:93
void setOrder(unsigned int)
Sets the order of the state provider to be used by the problem. Throws if not a state provider.
Definition: motion_provider.h:121
TimeStamp implements basic functionalities for time stamps.
Definition: time_stamp.h:39
Composite of state vectors.
Definition: vector_composite.h:29
Definition: capture_base.h:23
std::string StateKeys
Definition: composite.h:31
WOLF_PTR_TYPEDEFS(CaptureLandmarksExternal)